home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1703 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  751 b   |  28 lines

  1. on(press){
  2.    _root.dis = 2;
  3.    if(_root.inven._currentframe == 1)
  4.    {
  5.       if(_root.micon._currentframe == 1 && _root.range == true)
  6.       {
  7.          if(_root.even33 == 0)
  8.          {
  9.             _root.sfx.gotoAndStop(3);
  10.             _root.even33 = 1;
  11.             _root.take = 19;
  12.             _root.next_dis1 = 2;
  13.             _root.next_txt1 = "Cutting these up makes anyones eyes water.";
  14.          }
  15.          else
  16.          {
  17.             _root.next_dis1 = 2;
  18.             _root.next_txt1 = "I think one should be enough.";
  19.          }
  20.       }
  21.       if(_root.micon._currentframe == 2)
  22.       {
  23.          _root.next_dis1 = 2;
  24.          _root.next_txt1 = "Seems as though there is a patch of onions growing here.";
  25.       }
  26.    }
  27. }
  28.